package net.oschina.git.hikoyan.helloapi.common.response;

/**
 * Created by yan on 17/2/13.
 */
public enum ResultCode {
    SUCCESS("0", "success"),
    UNKNOWN("7", "未知错误");

    private String code;
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String toString() {
        return "{" + "\"code\":\"" + this.code + "\"," + "\"message\":\"" + this.message + "\"}";
    }
}
